package com.foreknow.test02;

import java.util.Scanner;

/**
 * 多选一
 * if(){
 * 代码一
 * }else if(){
 * 代码二
 * }else if(){
 * 代码三
 * }else{
 * 代码四
 * }
 */
public class MultiDemo {
    public static void main(String[] args) {
        System.out.println("请输入会员的积分：");
        Scanner sc = new Scanner(System.in);
        int score = sc.nextInt();
        //表示折扣
        double discount = 0.0;
        //判断折扣
        if(score<2000){
            discount = 0.0;
        }else if (score >= 2000 && score < 4000){
            discount = 0.8;
        }else if (score >= 4000 && score < 8000){
            discount = 0.7;
        }else{
            discount = 0.5;
        }
        System.out.println("会员折扣是：" + discount);
    }
}
